<?php

$news = new news;

$items = $news->get();

$smarty->assign('news', $items);

$smarty->display('main.tpl', $_SESSION['uid']);

?> 
